package com.cch.demo.sys.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ResultObj {

    private Integer code;
    private String msg;

    /**
     * 登录成功
     */
    public  static final ResultObj LOGIN_SUCCESS = new ResultObj(Constast.OK,"登录成功");

    /**
     * 登录失败
     */
    public  static final ResultObj LOGIN_ERROR = new ResultObj(Constast.ERROR,"用户名或密码错误");


    /**
     * 验证码
     */
    public  static final ResultObj CODE_ERROR = new ResultObj(Constast.ERROR,"验证码错误");

    public  static final ResultObj UPDATE_SUCCESS = new ResultObj(Constast.OK,"修改成功 ");
    public  static final ResultObj UPDATE_ERROR = new ResultObj(Constast.ERROR,"修改失败 ");

    public  static final ResultObj DELETE_SUCCESS = new ResultObj(Constast.OK,"删除成功 ");
    public  static final ResultObj DELETE_ERROR = new ResultObj(Constast.ERROR,"删除失败 ");

    public  static final ResultObj ADD_SUCCESS = new ResultObj(Constast.OK,"增加成功 ");
    public  static final ResultObj ADD_ERROR = new ResultObj(Constast.ERROR,"增加失败 ");

    public  static final ResultObj DISPATCH_SUCCESS = new ResultObj(Constast.OK,"分配成功 ");
    public  static final ResultObj DISPATCH_ERROR = new ResultObj(Constast.ERROR,"分配失败 ");

    public  static final ResultObj RESET_SUCCESS = new ResultObj(Constast.OK,"重置密码成功");
    public  static final ResultObj RESET_ERROR = new ResultObj(Constast.OK,"重置密码失败");

    public  static final ResultObj OPERATE_SUCCESS = new ResultObj(Constast.OK,"操作成功");
    public  static final ResultObj OPERATE_ERROR = new ResultObj(Constast.OK,"操作失败");
}
